<!--
 * @FileDescription 应用 - 选项
 * @Author 杨宇翔
 * @Date 20220816 11:02:13
 * @LastEditors 杨宇翔
 * @LastEditTime 20220816 11:02:13
-->
<template>
    <div class="container">
        <template v-for="option of UsageComponent.Default.Options.value" :key="option">
            <input type="radio" :value="option" :id="option" v-model="UsageComponent.Default.Module.value" hidden>
            <label :for="option">
                <span></span>
                <span>{{ option }}</span>
            </label>
        </template>
    </div>
</template>

<script setup lang="ts">
import { UsageComponent } from './BinocularCameraComponent';
</script>

<style scoped>
.container {
    position: absolute;
    right: 6rem;
    bottom: 2rem;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 4rem;
}

label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

label>span:first-of-type {
    display: inline-block;
    width: 7.4rem;
    height: 7.4rem;
}

label>span:last-of-type {
    color: #81859C;
    font-size: 1.6rem;
    line-height: 1.6rem;
}

label:first-of-type>span:first-of-type {
    background-image: url('/static/BinocularCamera/ic_xiangjigongneng_normal.png');
}

label:last-of-type>span:first-of-type {
    background-image: url('/static/BinocularCamera/ic_chedaoxianshibie_normal.png');
}

input:first-of-type:checked+label>span:first-of-type {
    background-image: url('/static/BinocularCamera/ic_xiangjigongneng_select.png');
}

input:last-of-type:checked+label>span:first-of-type {
    background-image: url('/static/BinocularCamera/ic_chedaoxianshibie_select.png');
}
</style>